//
//  KFDAlarmSettings.m
//  KFD
//
//  Created by JIRENTIANXIANG on 7/26/15.
//  Copyright © 2015 kfd. All rights reserved.
//

#import "KFDAlarmSettings.h"

@implementation KFDAlarmSettings

-(instancetype)initWithDictionary:(NSDictionary *)dictionary
{
    if (self=[super initWithDictionary:dictionary]) {
        NSString* isfloat=dictionary[@"isfloat"];
        self.isfloat=isfloat.boolValue;
        NSString* base_price=dictionary[@"base_price"];
        self.base_price=[self numberFromString:base_price];
        NSString* float_price=dictionary[@"float_price"];
        self.float_price=[self numberFromString:float_price];
        NSString* ispoint=dictionary[@"ispoint"];
        self.ispoint=ispoint.boolValue;
        NSString* point_max=dictionary[@"point_max"];
        self.point_max=[self numberFromString:point_max];
        NSString* point_min=dictionary[@"point_min"];
        self.point_min=[self numberFromString:point_min];
    }
    return self;
}

@end
